/**
 *  @file: DataTask.h
 *  @author: nwz
 *  @brief: 
 *  @date: 2024��7��31��
 * 
 */

#pragma once
#include <all_header.h>

namespace task {

/*
 *
 */
class DataTask {
public:
	DataTask();
	virtual ~DataTask();

	void setBacklight(uint8_t brightness);
	uint8_t getBacklight();
	int init();
	static void run(DataTask* task);

	static void test1();

private:
	void wait();
	void notify();
	SemaphoreHandle_t sem;

};

} /* namespace task */
